Definition:
- Where the wrong sort of assert is used, thus making a test failure harder to understand
Code Example:
Boolean isValid = false;
if (actualResult.contains("foo")) {
isValid = true;
}
assertEquals(true, isValid)
References:
Quality attributes
- :octicon:`file-code;1em` - Code Example
- :octicon:`comment-discussion;1em` - Cause and Effect
- :octicon:`graph;1em` - Frequency
- :octicon:`sync;1em` - Refactoring